public class Fork{
	private int id;
	private boolean picked;

	public Fork (int newId)
	{
		this.id= newId;
	}

	synchronized public void pick(){ 
		picked= true;
		System.out.println ("  Fork: " + id + " has been picked");
	}

	public boolean isPicked() {
		return picked;
	}
	
	public int getId(){
		return this.id;
	}

	synchronized public void release(){ 
		picked = false;
		System.out.println ("  Fork: " + id + " has been released");
	}
}
